//go:build wireinject
// +build wireinject

// The build tag makes sure the stub is not built in the final build.

package main

import (
	"gitee.com/fowa/fowa-server/internal/biz"
	"gitee.com/fowa/fowa-server/internal/data"
	"gitee.com/fowa/fowa-server/internal/service"
	"github.com/google/wire"
	"gorm.io/gorm"
)

func InitService(db *gorm.DB) *service.TaskProvider {
	wire.Build(service.TaskSet, biz.TaskSet, data.TaskSet)
	return &service.TaskProvider{}
}
